#ifndef HALLWIDGET_H
#define HALLWIDGET_H

#include <QWidget>
#include <QMap>
#include "../common/singleton.h"

namespace Ui {
class hallWidget;
}

class hallWidget : public QWidget
{
    Q_OBJECT

    friend class SingleTon<hallWidget>;
    explicit hallWidget(QWidget *parent = nullptr);
public:

    ~hallWidget();
    void addroom(QString,QString);
    QMap<QString, QString> getroom(){return roomMap;}
    void getrooms();
    void showrooms();
    void clearrooms();

private slots:

    void on_btnCreateroom_clicked();

    void on_btngetroom_clicked();

    void on_btnJoinroom_clicked();

    void on_pushButton_3_clicked();

private:
    Ui::hallWidget *ui;
    QMap<QString, QString> roomMap;
};


#endif // HALLWIDGET_H
